GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
Shell.util_sd_notify();
global.context.notify_ready();
- _notifyGnomeSessionReady();
return GLib.SOURCE_REMOVE;
});
});
}
-async function _notifyGnomeSessionReady() {
- try {
- let params = GLib.Variant.new('(ss)', ['org.gnome.Shell.desktop', '']);
- await Gio.DBus.session.call(
- 'org.gnome.SessionManager',
- '/org/gnome/SessionManager',
- 'org.gnome.SessionManager',
- 'RegisterClient', params, null,
- Gio.DBusCallFlags.NONE, -1, null);
- } catch (e) {
- log(`Error notifying gnome-session that we're ready: ${e.message}`);
- }
-}
-
function _handleShowWelcomeScreen() {
const lastShownVersion = global.settings.get_string(WELCOME_DIALOG_LAST_SHOWN_VERSION);
if (Util.GNOMEversionCompare(WELCOME_DIALOG_LAST_TOUR_CHANGE, lastShownVersion) > 0) {